package cn.bdqn.mapper;

import cn.bdqn.pojo.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoMapper {
    public List<Video> selectAll(@Param("category") String category,@Param("languageId") Long languageId,@Param("pageNo") Integer pageNo,@Param("pageSize")Integer pageSize);

    public int selectCount(@Param("category") String category,@Param("languageId") Long languageId);

    public int insert(Video video);

    public Video selectOne(Long id);

    public int update(Video video);

    public int delete(Long id);
}
